package com.zsj.zsjkotlinmvvm.data.remote.repository

import com.zsj.zsjkotlinmvvm.data.model.ListData
import com.zsj.zsjkotlinmvvm.data.model.repository.*
import com.zsj.zsjkotlinmvvm.data.model.user.request.LoginRequestData
import com.zsj.zsjkotlinmvvm.data.model.user.response.UserAccessTokenData
import com.zsj.zsjkotlinmvvm.data.model.user.response.UserInfoData
import com.zsj.zsjkotlinmvvm.utils.dateFormatForRepository
import retrofit2.Retrofit
import retrofit2.http.*
import java.time.LocalDateTime
import javax.inject.Inject

/**
 * Created by TanJiaJun on 2020/4/4.
 */
class VideoRepositoryRemoteDataSource @Inject constructor(
    retrofit: Retrofit
) {

    private val service: Service = retrofit.create(Service::class.java)


    suspend fun getVideoList(  integer: Int,
                               size: Int): VideoResponseData =
        service.getVideoList()

    interface Service {

        @GET("api/getHaoKanVideo")
        suspend fun getVideoList(): VideoResponseData
    }

}